(function() {
  var history = document.getElementById("history-button");
  history.setAttribute("popup", "_child");
  history.setAttribute("oncommand", "var node = event.target.node; if (node) { PlacesUIUtils.markPageAsTyped(node.uri); openUILink(node.uri, event, false, true); }");
  history.setAttribute("onclick", "checkForMiddleClick(this, event);");
  history.removeAttribute("observes");

  var mPopup = document.getElementById("goPopup");
  mPopup.setAttribute("position", "after_start");
  history.appendChild(mPopup);
})();